const seed = {}
const now = Date.now()

function getUuid(key = 'seq') {
  if (!seed[key]) {
    seed[key] = 1
  }
  return key + now + '-' + (seed[key]++)
}

export default getUuid
